package com.atguigu.spzx.manager.mapper;

import com.atguigu.spzx.model.dto.product.ProductDto;
import com.atguigu.spzx.model.entity.product.Product;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface ProductMapper {
    List<Product> findProductPageList(ProductDto productDto);

    void insertProduct(Product product);

    Product selectById(Long productId);

    void updateAuditStatus(Long id, Integer status, String auditMessage);

    void updateStatus(Long id, Integer status);

    void deleteById(Long id);

    void updateById(Product product);
}
